import request from '@/utils/request'

// 查询充电站列表
export function listChargingpilesstation(query) {
  return request({
    url: '/system/chargingpilesstation/list',
    method: 'get',
    params: query
  })
}

// 查询充电站详细
export function getChargingpilesstation(sid) {
  return request({
    url: '/system/chargingpilesstation/' + sid,
    method: 'get'
  })
}

// 新增充电站
export function addChargingpilesstation(data) {
  return request({
    url: '/system/chargingpilesstation',
    method: 'post',
    data: data
  })
}

// 修改充电站
export function updateChargingpilesstation(data) {
  return request({
    url: '/system/chargingpilesstation',
    method: 'put',
    data: data
  })
}

// 删除充电站
export function delChargingpilesstation(sid) {
  return request({
    url: '/system/chargingpilesstation/' + sid,
    method: 'delete'
  })
}

// 查询所有充电站
export function AllChargingpilesstation() {
  return request({
    url: '/system/chargingpilesstation/all/all',
    method: 'get',
  })
}
